package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.QihuoHistoryDataMapper;
import com.ruoyi.service.domain.QihuoHistoryData;
import com.ruoyi.service.service.IQihuoHistoryDataService;

/**
 * 期货历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-04
 */
@Service
public class QihuoHistoryDataServiceImpl implements IQihuoHistoryDataService 
{
    @Autowired
    private QihuoHistoryDataMapper qihuoHistoryDataMapper;

    /**
     * 查询期货历史数据
     * 
     * @param id 期货历史数据主键
     * @return 期货历史数据
     */
    @Override
    public QihuoHistoryData selectQihuoHistoryDataById(String id)
    {
        return qihuoHistoryDataMapper.selectQihuoHistoryDataById(id);
    }

    /**
     * 查询期货历史数据列表
     * 
     * @param qihuoHistoryData 期货历史数据
     * @return 期货历史数据
     */
    @Override
    public List<QihuoHistoryData> selectQihuoHistoryDataList(QihuoHistoryData qihuoHistoryData)
    {
        return qihuoHistoryDataMapper.selectQihuoHistoryDataList(qihuoHistoryData);
    }

    /**
     * 新增期货历史数据
     * 
     * @param qihuoHistoryData 期货历史数据
     * @return 结果
     */
    @Override
    public int insertQihuoHistoryData(QihuoHistoryData qihuoHistoryData)
    {
        return qihuoHistoryDataMapper.insertQihuoHistoryData(qihuoHistoryData);
    }

    /**
     * 修改期货历史数据
     * 
     * @param qihuoHistoryData 期货历史数据
     * @return 结果
     */
    @Override
    public int updateQihuoHistoryData(QihuoHistoryData qihuoHistoryData)
    {
        return qihuoHistoryDataMapper.updateQihuoHistoryData(qihuoHistoryData);
    }

    /**
     * 批量删除期货历史数据
     * 
     * @param ids 需要删除的期货历史数据主键
     * @return 结果
     */
    @Override
    public int deleteQihuoHistoryDataByIds(String[] ids)
    {
        return qihuoHistoryDataMapper.deleteQihuoHistoryDataByIds(ids);
    }

    /**
     * 删除期货历史数据信息
     * 
     * @param id 期货历史数据主键
     * @return 结果
     */
    @Override
    public int deleteQihuoHistoryDataById(String id)
    {
        return qihuoHistoryDataMapper.deleteQihuoHistoryDataById(id);
    }
}
